package com.green.dao.manage.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.green.dao.impl.BaseDaoImpl;
import com.green.dao.manage.FunPermissionDao;
import com.green.model.manage.FunPermission;



/**
 * 人员
 * 
 */
@Repository("funPermissionDao")
public class FunPermissionDaoImpl extends BaseDaoImpl implements FunPermissionDao {

	@Override
	public int insertFunPermission(FunPermission ct) {
		return insert("com.green.dao.manage.FunPermissionDao.insertFunPermission", ct);
	}

	@Override
	public int updateFunPermission(FunPermission ct) {
		return update("com.green.dao.manage.FunPermissionDao.updateFunPermission", ct);
	}

	@Override
	public int deleteFunPermission(Map<String, Object> param) {
		return delete("com.green.dao.manage.FunPermissionDao.deleteFunPermission", param);
	}

	@Override
	public FunPermission getFunPermissionById(String id) {
		return (FunPermission) super.getSqlSession().selectOne("com.green.dao.manage.FunPermissionDao.getFunPermissionById",id);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<FunPermission> getFunPermissionList(Map<String, Object> param) {
		return (List<FunPermission>) this.selectList("com.green.dao.manage.FunPermissionDao.getFunPermissionList", param);
	}
	
	
}
